package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the inst database table.
 * 
 */
@Entity
@Table(name="inst")
@NamedQuery(name="Inst.findAll", query="SELECT i FROM Inst i")
public class Inst implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private int cwnum;

	@Temporal(TemporalType.TIMESTAMP)
	private Date idate;
	@Id
	private int innum;

	private int intype;

	private String theme;
	
	private Date tdate;
	
	private int inshow;
	public void setInshow(int inshow) {
		this.inshow = inshow;
	}
	public int getInshow() {
		return inshow;
	}
	
	public void setTdate(Date tdate) {
		this.tdate = tdate;
	}
	public Date getTdate() {
		return tdate;
	}

	//bi-directional many-to-one association to Depotgoodsshelf
	@ManyToOne
	@JoinColumn(name="dgsnum")
	private Depotgoodsshelf depotgoodsshelf;

	//bi-directional many-to-one association to Scheduleform
	@ManyToOne
	@JoinColumn(name="schno")
	private Scheduleform scheduleform;

	public Inst() {
	}

	public int getCwnum() {
		return this.cwnum;
	}

	public void setCwnum(int cwnum) {
		this.cwnum = cwnum;
	}

	public Date getIdate() {
		return this.idate;
	}

	public void setIdate(Date idate) {
		this.idate = idate;
	}

	public int getInnum() {
		return this.innum;
	}

	public void setInnum(int innum) {
		this.innum = innum;
	}

	public int getIntype() {
		return this.intype;
	}

	public void setIntype(int intype) {
		this.intype = intype;
	}

	public String getTheme() {
		return this.theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}

	public Depotgoodsshelf getDepotgoodsshelf() {
		return this.depotgoodsshelf;
	}

	public void setDepotgoodsshelf(Depotgoodsshelf depotgoodsshelf) {
		this.depotgoodsshelf = depotgoodsshelf;
	}

	public Scheduleform getScheduleform() {
		return this.scheduleform;
	}

	public void setScheduleform(Scheduleform scheduleform) {
		this.scheduleform = scheduleform;
	}

}